package com.bootdo.common.utils;


import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;


public class AliyunLogConstant implements InitializingBean {

    @Value("${aliyun.datasource.url}")
    private String aliyun_datasource_url;

    @Value("${aliyun.endpoint}")
    private String aliyun_endpoint;

    @Value("${aliyun.accessKeyId}")
    private String aliyun_accessKeyId;

    @Value("${aliyun.accessKeySecret}")
    private String aliyun_accessKeySecret;

    @Value("${aliyun.project}")
    private String aliyun_project;

    @Value("${aliyun.logStore.airmboll}")
    private String aliyun_logStore_airmboll;

    @Value("${aliyun.logStore.third}")
    private String aliyun_logStore_third;

    @Value("${aliyun.totalSizeInBytes}")
    private String aliyun_totalSizeInBytes;

    @Value("${aliyun.ioThreadCount}")
    private String aliyun_ioThreadCount;


    public static String ALIYUN_DATASOURCE_URL;
    public static String ALIYUN_ENDPOINT;
    public static String ALIYUN_ACCESSKEYID;
    public static String ALIYUN_ACCESSKEYSECRET;
    public static String ALIYUN_PROJECT;
    public static String ALIYUN_LOGSTORE_AIRMBOLL;
    public static String ALIYUN_LOGSTORE_THIRD;
    public static String ALIYUN_TOTALSIZEINBYTES;
    public static String ALIYUN_IOTHREADCOUNT;


    @Override
    public void afterPropertiesSet() throws Exception {
        ALIYUN_DATASOURCE_URL = aliyun_datasource_url;
        ALIYUN_ENDPOINT = aliyun_endpoint;
        ALIYUN_ACCESSKEYID = aliyun_accessKeyId;
        ALIYUN_ACCESSKEYSECRET = aliyun_accessKeySecret;
        ALIYUN_PROJECT = aliyun_project;
        ALIYUN_LOGSTORE_AIRMBOLL = aliyun_logStore_airmboll;
        ALIYUN_LOGSTORE_THIRD = aliyun_logStore_third;
        ALIYUN_TOTALSIZEINBYTES = aliyun_totalSizeInBytes;
        ALIYUN_IOTHREADCOUNT = aliyun_ioThreadCount;
    }
}
